{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "教师申请列表" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {#{{ dump(applys) }}#}
    {% if applys is empty %}
        <div class="grey-box author-box">
            暂无数据
        </div>

    {% endif %}
    {% for i in 1..9 %}
    {% for apply in applys %}
        <div class="row our-team">
            <div class="col-md-4">
                <figure>
                    <img src="{{ asset(apply.user.headPic) }}" class="img-rounded" alt="Edward Willis" />
                </figure>
            </div>
            <div class="col-md-5">
                <p>
                    <b>姓名:</b>{{ apply.teacher.name }}
                </p>
                <p>
                    <b>简介:</b>{{ apply.teacher.intro }}
                </p>
                <p>
                    <b>留言:</b>{{ apply.message }}
                </p>
                <hr class="invisible">
            </div>
            <div class="col-md-3">
                <form action="{{ path("WebSchoolTeacherApplyDeny",{ id : apply.id }) }}">
                <div class="row">
                    <p class="button-full">
                        <a href="{{ path("WebSchoolTeacherApplyAccept",{ id : apply.id }) }}" class="btn btn-theme btn-green" data-content="接受申请加入我校" data-placement="bottom">
                            <i class="fa fa-plus"></i> 允许加入
                        </a>
                    </p>

                    <p class="button-full">
                        <button  class="btn btn-theme btn-danger" type="submit">
                            <i class="fa fa-minus"></i> 拒绝加入
                        </button>
                    </p>

                    <div class="form-group">
                        <textarea name="reply" class="form-control" rows="4" placeholder="拒绝理由"></textarea>
                    </div>

                </div>
                </form>
            </div>
        </div>
        <hr>
    {% endfor %}
    {% endfor %}
{% endblock %}
